<template>
	<view class="content">
		<image class="logo" v-on:click="change" src="/static/logo.png"></image>
		<view class="text-area">
			<text class="title">{{title}}</text>
		</view>
		<view>
			<view>{{number+1}}</view>
			<view>{{ok?'yes':'no'}}</view>
			<view>{{message.split('').reverse().join('')}}</view>
		</view>
		<view v-if="!raining">今天天气真是太好啦，出门玩！</view>
		<view v-if="raining">今天下雨出不了门了。</view>
		<view v-if="state==='vue'">state的值是 Vue </view>
		<view>State is {{state?'vue':'APP'}}</view>
		<view>
			<view v-if="state==='vue'">uni-app</view>
			<view v-else-if="state==='html'">HTML</view>
			<view v-else>APP</view>
		</view>
		<view v-for="item in arr" style="color: blueviolet;">
			{{item}}
		</view>
		<view v-for="(item,index) in 4" style="color: bisque;">
			<view :class="'list-'+index%2">{{index%2}}</view>
		</view>
		<view v-for="(value,name,index) in object" :key="index">
			{{index+1}}.{{name}}:{{value}}
		</view>
		<view v-for="item in arr" :key="item.id">
			<view style="color: blueviolet;">
				{{item.id}}:{{item.name}}
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				arr: [
					{id: 1,name: 'uniapp'},
					{id: 2,name: 'HTML'},
				],
				object: { 
					title: 'show is APP',
					author: 'Amy',
					publishedAt: '2025-9-30'
				},
				
				raining: false,
				state: 'vue',
				title: '',
				number: 0,
				ok: false,
				message: ''
			}
		},
		onLoad() {

		},
		methods: {
			change() { 
			}
		}
	}
</script>

<style>
.content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
.logo {
	height: 200rpx;
	width: 200rpx;
	margin-top: 200rpx;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 50rpx;
}
.text-area {
	display: flex;
	justify-content: center;
}
.title {
	font-size: 36rpx;
	color: #8f8f94;
}
</style>